package chixing.day19.work;

public class User {
    private int userId;
    private boolean isNewUser ;
    private boolean isVip;
    public User(int userId, boolean isNewUser, boolean isVip)
    {
        this.userId = userId;
        this.isNewUser = isNewUser;
        this.isVip = isVip;
    }
    public User(){

    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isNewUser() {
        return isNewUser;
    }

    public void setNewUser(boolean newUser) {
        isNewUser = newUser;
    }

    public boolean isVip() {
        return isVip;
    }

    public void setVip(boolean vip) {
        isVip = vip;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", isNewUser=" + isNewUser +
                ", isVip=" + isVip +
                '}';
    }
}
